#!/bin/sh
echo 'import data from hdfs....'
currDate=`date "+%Y%m%d"`
echo "now time :'$currDate'"
/opt/lagou/server/hive-2.3.7/bin/hive -e "USE userclick;LOAD DATA INPATH '/user_clicks/$currDate/*' OVERWRITE INTO TABLE user_clicks PARTITION(dt='$currDate');"
